import { reactive } from 'vue';
import { type FormRules } from 'sard-uniapp';

export const rules = reactive<FormRules>({
  mealName: { required: true, message: '食物名称不能为空', trigger: 'blur' },
  mealSource: { required: true, message: '食物来源不能为空', trigger: 'blur' },
  mealPrice: { required: true, message: '食物价格不能为空', trigger: 'blur' },
  mealKind: { type: 'array', required: true, message: '食物类别不能为空', trigger: 'blur' },
  fileList: {
    type: 'array',
    required: true,
    message: '食物图片不能为空',
    trigger: 'blur',
  },
});
